home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch30 / move1.js < prev    next >
Text File  |  1996-09-23  |  228b  |  7 lines

  1. // Move a shape in a straight path
  2. function set_fraction( fraction, eventTime ) {
  3.     value_changed[0] = fraction;    // X component
  4.     value_changed[1] = 0.0;         // Y component
  5.     value_changed[2] = 0.0;         // Z component
  6. }
  7.